using System;
using System.Collections.Generic;
using System.Text;

using DataAccess;

namespace Task.Contracts
{
    /// <summary>
    /// Cryptography Task.
    /// Calculates MD5
    /// </summary>
    public interface ICryptographyTask
    {
        /// <summary>
        /// Gets the MD5 from string.
        /// </summary>
        /// <param name="text">The text.</param>
        /// <returns></returns>
        string GetMd5FromString(string text);

        /// <summary>
        /// Gets the MD5 from user.
        /// </summary>
        /// <param name="u">The u.</param>
        /// <returns></returns>
        string GetMd5FromUser(user u);

        /// <summary>
        /// Gets the random string.
        /// </summary>
        /// <param name="length">The length.</param>
        /// <returns></returns>
        string GetRandomString(int length);
    }
}
